package com.zp.self.module.level_5_设计模式.结构型模式.Ⅲ_装饰模式;

import org.junit.Test;

/**
 * @author ：by Zeng Peng
 * @date ：Created 2022/6/29 21:22
 * @description ：
 */
public class Client {
    @Test
    public void test(){
        Rice rice = new Rice();
        Egg egg = new Egg(rice);
        Beaf beaf = new Beaf(egg);
        Egg egg1 = new Egg(beaf);
        System.out.println(egg1.cost());
        System.out.println(egg1.getDesc());
    }
}
